package cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.controller;

import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.Journal;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.JournalImpact;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.Subject;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.service.JournalService;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.service.SubjectServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class JournalController {
    @Autowired
    private JournalService journalService;
    @GetMapping("/journal")
    public List<Journal> getAllSubject(){
        return journalService.getAllJournals();
    }

    @GetMapping("/journalImpact")
    public List<JournalImpact> getJournalImpacts(){
            return journalService.getJournalImpacts();
        }
}
